Optimal. Leaf size=83 \[ \frac {2 g \sqrt {\frac {d+c \cos (e+f x)}{c+d}} \Pi \left (\frac {2 a}{a+b};\frac {1}{2} (e+f x)|\frac {2 c}{c+d}\right ) \sqrt {g \sec (e+f x)}}{(a+b) f \sqrt {c+d \sec (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.28, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 39, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {4060, 2886,
2884} \begin {gather*} \frac {2 g \sqrt {g \sec (e+f x)} \sqrt {\frac {c \cos (e+f x)+d}{c+d}} \Pi \left (\frac {2 a}{a+b};\frac {1}{2} (e+f x)|\frac {2 c}{c+d}\right )}{f (a+b) \sqrt {c+d \sec (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2884
Rule 2886
Rule 4060
Rubi steps
\begin {align*} \int \frac {(g \sec (e+f x))^{3/2}}{(a+b \sec (e+f x)) \sqrt {c+d \sec (e+f x)}} \, dx &=\frac {\left (g \sqrt {d+c \cos (e+f x)} \sqrt {g \sec (e+f x)}\right ) \int \frac {1}{(b+a \cos (e+f x)) \sqrt {d+c \cos (e+f x)}} \, dx}{\sqrt {c+d \sec (e+f x)}}\\ &=\frac {\left (g \sqrt {\frac {d+c \cos (e+f x)}{c+d}} \sqrt {g \sec (e+f x)}\right ) \int \frac {1}{(b+a \cos (e+f x)) \sqrt {\frac {d}{c+d}+\frac {c \cos (e+f x)}{c+d}}} \, dx}{\sqrt {c+d \sec (e+f x)}}\\ &=\frac {2 g \sqrt {\frac {d+c \cos (e+f x)}{c+d}} \Pi \left (\frac {2 a}{a+b};\frac {1}{2} (e+f x)|\frac {2 c}{c+d}\right ) \sqrt {g \sec (e+f x)}}{(a+b) f \sqrt {c+d \sec (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.25, size = 83, normalized size = 1.00 \begin {gather*} \frac {2 g \sqrt {\frac {d+c \cos (e+f x)}{c+d}} \Pi \left (\frac {2 a}{a+b};\frac {1}{2} (e+f x)|\frac {2 c}{c+d}\right ) \sqrt {g \sec (e+f x)}}{(a+b) f \sqrt {c+d \sec (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 6.54, size = 254, normalized size = 3.06
method | result | size |
default | \(-\frac {2 i \left (2 a \EllipticPi \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, -\frac {a -b}{a +b}, i \sqrt {\frac {c -d}{c +d}}\right )-a \EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, \sqrt {-\frac {c -d}{c +d}}\right )-b \EllipticF \left (\frac {i \left (-1+\cos \left (f x +e \right )\right )}{\sin \left (f x +e \right )}, \sqrt {-\frac {c -d}{c +d}}\right )\right ) \sqrt {\frac {d +c \cos \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right ) \left (c +d \right )}}\, \sqrt {\frac {d +c \cos \left (f x +e \right )}{\cos \left (f x +e \right )}}\, \left (-1+\cos \left (f x +e \right )\right ) \left (\frac {g}{\cos \left (f x +e \right )}\right )^{\frac {3}{2}} \left (\cos ^{2}\left (f x +e \right )\right )}{f \left (d +c \cos \left (f x +e \right )\right ) \left (\frac {1}{\cos \left (f x +e \right )+1}\right )^{\frac {3}{2}} \sin \left (f x +e \right )^{2} \left (a -b \right ) \left (a +b \right )}\) | \(254\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (g \sec {\left (e + f x \right )}\right )^{\frac {3}{2}}}{\left (a + b \sec {\left (e + f x \right )}\right ) \sqrt {c + d \sec {\left (e + f x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {{\left (\frac {g}{\cos \left (e+f\,x\right )}\right )}^{3/2}}{\left (a+\frac {b}{\cos \left (e+f\,x\right )}\right )\,\sqrt {c+\frac {d}{\cos \left (e+f\,x\right )}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________